# Contributor: Andy Hawkins <andy@gently.org.uk>
# Maintainer: Andy Hawkins <andy@gently.org.uk>
pkgname=py3-rkm-codes
pkgver=0.5
pkgrel=3
pkgdesc="Number format for compact robust labels"
url="https://nurdletech.com/linux-utilities/rkm_codes/"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	python3
	py3-quantiphy
	"
makedepends="
	py3-pytest-runner
	py3-setuptools
	"
checkdepends="py3-pytest"
source="https://github.com/KenKundert/rkm_codes/archive/v$pkgver/rkm_codes-v$pkgver.tar.gz"
builddir="$srcdir/rkm_codes-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="515c7e29b25d7eec4b9a2a31223e41e9b77a61831db6d2cf3213ac8088396bee528eee883362ec248845f98da3575e204ca0be61d367d931082aab9811ebd736  rkm_codes-v0.5.tar.gz"
